package com.pxmeta.party.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@TableName("kt_lottery_lucky_user")
@ApiModel(value = "幸运用户对象", description = "幸运用户对象")
@Data
public class LotteryLuckyUser implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("用户id")
    private Long userId;

    @ApiModelProperty(value = "价值")
    private Integer price;

    @ApiModelProperty(value = "奖品id")
    private Integer giftId;

    @ApiModelProperty(value = "记录id")
    private Long recordId;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    @ApiModelProperty(value = "奖品数")
    private Integer count;

    @ApiModelProperty(value = "类型")
    private Integer type;

    @TableField(exist = false)
    private String lotteryType;

    @ApiModelProperty(value = "礼物图标")
    @TableField(exist = false)
    private String giftIcon;

    @ApiModelProperty(value = "星球名称")
    @TableField(exist = false)
    private String starName;

    @ApiModelProperty(value = "礼物名称")
    @TableField(exist = false)
    private String giftName;

    @ApiModelProperty(value = "昵称")
    @TableField(exist = false)
    private String account;

    @ApiModelProperty(value = "消费金额")
    private Double consumePrice;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}
